$OpenBSD: patch-cegui_src_DynamicModule_cpp,v 1.2 2016/08/31 16:18:58 pascal Exp $
--- cegui/src/DynamicModule.cpp.orig.port	Sun Feb 28 00:48:50 2016
+++ cegui/src/DynamicModule.cpp	Fri Apr  1 11:39:44 2016
@@ -42,7 +42,7 @@
     typedef HMODULE DYNLIB_HANDLE;
 #endif
 
-#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__) || defined(__CYGWIN__)
+#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__HAIKU__) || defined(__CYGWIN__)
 #   include "dlfcn.h"
 #   define DYNLIB_LOAD( a ) dlopen( (a).c_str(), RTLD_LAZY )
 #   define DYNLIB_GETSYM( a, b ) dlsym( a, (b).c_str() )
@@ -200,7 +200,7 @@ DynamicModule::DynamicModule(const String& name) :
 
     d_pimpl->d_handle = DynLibLoad(d_pimpl->d_moduleName);
 
-#if defined(__linux__) || defined(__APPLE__) || defined(__MINGW32__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
+#if defined(__linux__) || defined(__APPLE__) || defined(__MINGW32__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__HAIKU__)
     // see if adding a leading 'lib' helps us to open the library
     if (!d_pimpl->d_handle && d_pimpl->d_moduleName.compare(0, 3, "lib") != 0)
     {
